Image - local image

  • Usage

    1. image folder

    path of image

    2. pubspec.xml

    add assets in pubspec.xml

    
                  flutter:
    
                      # The following line ensures that the Material Icons font is
                      uses-material-design: true
    
                      # To add assets to your application, add an assets section, like this:
                      assets:
                        - assets/flutterlogo.png
    
    

    3. call image in screen

    
                  Image.asset('assets/images/GeeksforGeeks.jpg')
                  
    
                  appBar: AppBar(title: const Text("My App Title")),
                  body: SafeArea(
                      child: Column(
                          children: [
                              Image.asset('assets/flutterlogo.png',width:200),
    
    
                          ]
                      )
                  ),